//
//  FFMJRefresh.h
//  beichoo_N_ios
//
//  Created by fanfan on 2017/8/30.
//  Copyright © 2017年 陈健. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "FFMJRefreshConfig.h"

@protocol  FFMJRefreshDelegate <NSObject>
@optional
- (void)show_downDrop;
- (void)show_upDrop;
@end
@interface FFMJRefresh : NSObject
@property (nonatomic, strong)FFMJRefreshConfig *config;
@property (nonatomic, strong)UITableView *tableView;
@property (nonatomic, strong)UICollectionView *collectionView;
@property (nonatomic,weak)id <FFMJRefreshDelegate>delegate;

#pragma - 只做 无图片正常上拉+下拉 其余后续再搞吧
- (id)initDelegate:(id<FFMJRefreshDelegate>)delegate
         tableView:(UITableView *)tableView
            config:(FFMJRefreshConfig *)config;
- (id)initDelegate:(id<FFMJRefreshDelegate>)delegate
    collectionView:(UICollectionView *)collectionView
            config:(FFMJRefreshConfig *)config;
#pragma mark 进入刷新状态
- (void)ff_beginRefreshing;
#pragma mark 结束刷新状态
- (void)ff_endRefreshing;
#pragma - 没有更多
- (void)ff_endRefreshinNoMoreData;
- (BOOL)ff_isRefreshing;
#pragma - 数据还有
-(void)ff_resetNoMoreData;
@end
